<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="/bigjo/js/jquery.js"></script>
<script type="text/javascript" src="/bigjo/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/bigjo/js/json2.js"></script>
<title>Insert title here</title>
</head>
<style type="text/css">
	article{
		text-align:center;
		margin-top: 100px;
	}
</style>

<script type="text/javascript">
	jQuery.noConflict();
	jQuery("#Searchid").click(function(){
		alert("아이디 체크");
		var idx = document.URL.indexOf("bigjo");
		var str = document.URL.substring(0, idx+5);
		var ssn1 = $("#m_ssn1").val();
		var ssn2 = $("#m_ssn2").val();
		jQuery.ajax({
			url : str + "/memberSearchId.mb?m_ssn1="+ssn1+"&m_ssn2="+ssn2,
			beforesend:function(){
				alert("찾는중");
			},
			error:function(data){
				alert("오류 발생")
			},
			success:function(data){
				jQuery("#SuccessSearch").html(data);
			}
		})
	});
</script>

<script type="text/javascript">
	jQuery.noConflict();
	jQuery("#Searchpw").click(function(){
		alert("패스워드 체크");
		var idx = document.URL.indexOf("bigjo");
		var str = document.URL.substring(0, idx+5);
		var id = $("#m_id").val();
		var ssn1 = $("#m_ssn1").val();
		var ssn2 = $("#m_ssn2").val();
		jQuery.ajax({
			url : str + "/memberSearchPw.mb?m_id="+id+"&m_ssn1="+ssn1+"&m_ssn2="+ssn2,
			beforesend:function(){
				alert("찾는중");
			},
			error:function(data){
				alert("오류 발생")
			},
			success:function(data){
				jQuery("#SuccessSearch").html(data);
				location.href= str+ "/home.main";
			}
		});
	});
</script>

<script type="text/javascript">
	jQuery.noConflict();
	jQuery("#login").click(function(){
		alert("로그인");
	});
</script>

<body>
<jsp:include page="/upMenu.main"></jsp:include>
	<section id="serchSection">
		<article id="serchArticle1">
			<table align="center">
			<thead>
			<tr>
				<th colspan="2">아이디 찾기</th>
			</tr>
			</thead>
			<tbody>
				<tr><td>주민등록 번호</td><td><input type="text" id="m_ssn1" value="910227"></td><td><input type="text" id="m_ssn2" value="1123122"></td></tr>
				<tr><td></td><td align="center"><input type="button" id="Searchid" value="찾기"></td></tr>
			</tbody>
			
			</table>
		</article>
		
		<article id="serchArticle2">
			<table align="center">
			<thead>
			<tr>
				<th colspan="2">패스워드 찾기</th>
			</tr>
			</thead>
			<tbody>
				<tr><td>아이디</td><td><input type="text" id="m_id" value="music1"></td></tr>
				<tr><td>주민등록 번호</td><td><input type="text" id="m_ssn1" value="910227"></td><td><input type="text" id="m_ssn2" value="1123122"></td></tr>
				<tr><td></td><td align="center"><input type="button" id="Searchpw" value="찾기"></td></tr>
			</tbody>
			</table>
		</article>
		<article id="SuccessSearch"></article>
	</section>
</body>
</html>